package com.game.service.beans;

import com.game.service.app.get_score.Money;
import com.game.service.app.get_score.UserLoginInfo;
import com.game.service.game.turntable.config.Prize;

public class UserInfo {
    //个人信息
    private String name;//玩家昵称
    private int uid;//玩家ID
    private long score;//玩家携带分数
    private Money money;//保存的是原始获取分数,结算时需要返回给服务器
    private String mac;//机器码
    private int liveid;//主播房间
    private String stream;//主播场次
    private String platform;//用户哪端进入
    private long commission;//主播佣金
    private UserLoginInfo userLoginInfo;//用户登录信息
    private int status;
    private int playCounts;
    private int luckyValue;//随机幸运值,幸运值达到一定值才能享受新手保护,防止注册新号刷分
    private Prize prize;//玩家游玩奖励信息

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int id) {
        this.uid = id;
    }

    public long getScore() {
        return score;
    }

    public void setScoreLower(long score) {
        this.score -= score;
    }

    public void setScoreAdd(long score) {
        this.score += score;
    }

    public void setScore(long score) {
        this.score = score;
    }

    public Money getMoney() {
        return money;
    }

    public void setMoney(Money money) {
        this.money = money;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public int getLiveid() {
        return liveid;
    }

    public void setLiveid(int liveid) {
        this.liveid = liveid;
    }

    public String getStream() {
        return stream;
    }

    public void setStream(String stream) {
        this.stream = stream;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public long getCommission() {
        return commission;
    }

    public void setCommission(long commission) {
        this.commission = commission;
    }

    public UserLoginInfo getUserLoginInfo() {
        return userLoginInfo;
    }

    public void setUserLoginInfo(UserLoginInfo userLoginInfo) {
        this.userLoginInfo = userLoginInfo;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setCommissionAdd(long commission) {
        this.commission += commission;
    }

    public int getPlayCounts() {
        return playCounts;
    }

    public void setPlayCounts(int playCounts) {
        this.playCounts = playCounts;
    }

    public void setPlayCountsAdd() {
        this.playCounts += 1;
    }

    public int getLuckyValue() {
        return luckyValue;
    }

    public void setLuckyValue(int luckyValue) {
        this.luckyValue = luckyValue;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "name='" + name + '\'' +
                ", uid=" + uid +
                ", score=" + score +
                ", money=" + money +
                ", mac='" + mac + '\'' +
                ", liveid=" + liveid +
                ", stream='" + stream + '\'' +
                ", platform='" + platform + '\'' +
                ", commission=" + commission +
                ", userLoginInfo=" + userLoginInfo +
                ", status=" + status +
                '}';
    }


    public Prize getPrize() {
        return prize;
    }

    public void setPrize(Prize prizeList) {
        this.prize = prizeList;
    }
}
